package 作业_P93实训;

public class fruitClass {
    String name;  //水果名
    String origin; // 产地
    double price; // 价格

    public fruitClass() {
    }

    public fruitClass(String name, String origin, double price) {
        this.name = name;
        this.origin = origin;
        this.price = price;
    }

    public void getIfo(){
        System.out.println("水果名；"+this.name);
        System.out.println("产地；"+this.origin);
        System.out.println("价格；"+this.price);

    }
}
